package com.tiejun.ge.mvc.controller;

import com.tiejun.ge.common.core.domain.R;
import com.tiejun.ge.mvc.annotation.RateLimit;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot
 * @description: HelloWorldController
 * @author: getiejun
 * @create: 2025-07-30 22:52
 **/
@Api(value = "Hello world", tags = "Hello world")
@Slf4j
@RestController
@RequestMapping("helloWorld")
public class HelloWorldController {

    @RateLimit
    @ApiOperation("hello world")
    @GetMapping()
    public R<?> helloWorld() {
        log.info(">>请求helloworld");
        return R.success("hello world");
    }

}
